//
//  NetRequest.h
//  
//
//  Created by MMC on 13-10-7.
//
//

#import <Foundation/Foundation.h>

#define ADVERTISEMENTURL [[NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"soft" ofType:@"plist"]] objectForKey:@"soft-ad-url"] //广告接口
#define EXTA_INTERFACE_URL  [[NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"soft" ofType:@"plist"]] objectForKey:@"soft-exta-url"] //扩展接口

#define UPDATE_URL [[NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"soft" ofType:@"plist"]] objectForKey:@"soft-update-url"]  //原下载地址




#define ORIGINAL_DOWNLOAD_ADDRESS  [[NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"soft" ofType:@"plist"]] objectForKey:@"soft-update-url"]  //原下载地址


#define SOFT_ZHONGZHUAN_DOWNLOAD_URL [[NSDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"soft" ofType:@"plist"]] objectForKey:@"zhongzhuan-download-url"]  //中转下载地址

#define NETWORKSTATE   [GlobalVar getNetWorkStates] //判断状态栏网络状态

@class NetRequest;
@protocol NetRequest_delegate <NSObject>

-(void)Delegate_FeedBack:(NetRequest *)sender value:(NSString *)str;
-(void)Delegate_FeedBackFail:(NetRequest*)sender  value:(NSString*)errorStr;

@end
@interface NetRequest : NSObject<NSXMLParserDelegate>
{
    NSMutableData * receivedData;
    NSXMLParser *SwXml;
    NSMutableString *SwMuString;
    BOOL recordResults;
    id<NetRequest_delegate>delegate;

}
@property(nonatomic,assign) id<NetRequest_delegate>delegate;
-(void)getNetWork:(NSString *)url CanShu:(NSString *)Can;
@end
